const express = require("express");
const app = express();

app.get('/product/:id:/name', (req, res, next) => {
  console.log(req.params)
  res.end('hello home')
})
app.get('/login', (req, res, next) =>{
  console.log(req.query)
  res.end('用户登录成功')
})
app.listen(8000, () => {
  console.log("服务器启动成功");
});
